package org.panda.spring.service.impl;

import org.panda.spring.dao.UserDao;
import org.panda.spring.service.UserServer;
import org.springframework.beans.factory.InitializingBean;

public class UserServerImpl implements UserServer , InitializingBean {

//    public UserServerImpl(){
//        System.out.println("UserServerImpl无参构造");
//    }

    public UserServerImpl(String name,int age){
        System.out.println("UserServerImpl有参构造");
    }



    public void init(){
        System.out.println("初始化方法....");
    }

    public void destroy(){
        System.out.println("销毁方法....");
    }

    public void setUserDao(UserDao userDao){
        System.out.println("setUserDao: " + userDao);

    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("afterPropertiesSet....");
    }
}
